package cn.dengta.webapp.trade.entity;

import java.util.Date;

import cn.dengta.webapp.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

/**
 * 充值风控视频记录
 *
 * @author lizhichao
 * @since 2023-06-07
 */
@Setter
@Getter
@TableName("dt_pay_risk_video_log")
public class PayRiskVideoLog extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/** 待处理 */
	public static final int STATUS_PENDING = 0;
	/** 已驳回 */
	public static final int STATUS_REJECT = -1;

	/** 用户ID */
	Long userId;
	/** 视频链接 */
	String videoUrl;
	/** 当倍数弹窗 */
	Integer multiplePopup;
	/** 状态：0=待处理；-1=已驳回 **/
	Integer status;
	/** 新增时间 */
	Date addTime;
	/** 更新时间 */
	Date updateTime;

	public static final String USER_ID = "user_id";
	public static final String VIDEO_URL = "video_url";
	public static final String ADD_TIME = "add_time";
	public static final String UPDATE_TIME = "update_time";
	public static final String STATUS = "status";
	public static final String MULTIPLE_POPUP = "multiple_popup";

	public void init(Date now) {
		addTime = now;
		updateTime = now;
		status = 0;
	}
}
